import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';

// 5. 导入全局状态
import store from './store/index'

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // <React.StrictMode>
  <App />
  // </React.StrictMode>
);

// 6. 订阅状态管理器改变是执行的操作
store.subscribe(() => {
  root.render(<App />)
})
